import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class SBarPanel extends JPanel {
	public ImageIcon icon;
	public JLabel myLabel;
	public String myString;
	public boolean clicked = false;
	public Color c1, c2, c3, c4, c5, c6;

	public void off(){
		this.setBackground(new Color(60, 60, 60));
	}
	
	public SBarPanel(String arg1) {
		
		myString = arg1;
		
		c1 = new Color(60, 60, 60);
		c2 = new Color(105, 105, 105);
		c3 = new Color(75, 75, 75);
		c4 = new Color(105, 105, 105);
		c5 = Color.black;

		this.setBackground(c1);
		this.setLayout(new GridBagLayout());
		this.setBorder(BorderFactory.createCompoundBorder(
				BorderFactory.createCompoundBorder(BorderFactory
						.createMatteBorder(2, 2, 2, 2, c2), BorderFactory
						.createMatteBorder(2, 0, 2, 0, c3)), BorderFactory
						.createMatteBorder(0, 0, 0, 0, c4)));

		GridBagConstraints c = new GridBagConstraints();
		
		myLabel = new JLabel(arg1);
		myLabel.setForeground(new Color(230, 230, 230));
		myLabel.setFont(new Font("Dialog", Font.BOLD, 14));
		this.add(myLabel, c);
	}
}